package com.wasu.entity.live;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p>Copyright (C) 2020 wasu company, All rights reserved.
 * <p>------------------------------------------------------
 * <p> IP直播管理系统分组频道节目单版本号变更
 * <p>
 *
 * @author Created by zhangmz
 * @date on 2023/8/21
 */
public class WasuEditVersion implements Parcelable {

    private String result;
    private String resultDesc;
    /**
     * 版本号
     */
    private String version;
    /**
     * 频道分组信息版本号
     */
    private String chVersion;
    /**
     * 节目单版本号（所有频道当天节目单）
     */
    private String eTodayVersion;

    /**
     * 终端监测周期（秒），默认为60秒
     */
    private String cycle;

    /**
     * JSON 格式，key是频道id，value是版本号
     */
    private String eVersion;

    public WasuEditVersion(){

    }

    public WasuEditVersion(String result, String resultDesc, String version, String chVersion, String eTodayVersion, String cycle, String eVersion) {
        this.result = result;
        this.resultDesc = resultDesc;
        this.version = version;
        this.chVersion = chVersion;
        this.eTodayVersion = eTodayVersion;
        this.cycle = cycle;
        this.eVersion = eVersion;
    }

    protected WasuEditVersion(Parcel in) {
        result = in.readString();
        resultDesc = in.readString();
        version = in.readString();
        chVersion = in.readString();
        eTodayVersion = in.readString();
        cycle = in.readString();
        eVersion = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(result);
        dest.writeString(resultDesc);
        dest.writeString(version);
        dest.writeString(chVersion);
        dest.writeString(eTodayVersion);
        dest.writeString(cycle);
        dest.writeString(eVersion);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WasuEditVersion> CREATOR = new Creator<WasuEditVersion>() {
        @Override
        public WasuEditVersion createFromParcel(Parcel in) {
            return new WasuEditVersion(in);
        }

        @Override
        public WasuEditVersion[] newArray(int size) {
            return new WasuEditVersion[size];
        }
    };

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getChVersion() {
        return chVersion;
    }

    public void setChVersion(String chVersion) {
        this.chVersion = chVersion;
    }

    public String geteTodayVersion() {
        return eTodayVersion;
    }

    public void seteTodayVersion(String eTodayVersion) {
        this.eTodayVersion = eTodayVersion;
    }

    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    public String geteVersion() {
        return eVersion;
    }

    public void seteVersion(String eVersion) {
        this.eVersion = eVersion;
    }

    @Override
    public String toString() {
        return "WasuEditVersion{" +
                "result='" + result + '\'' +
                ", resultDesc='" + resultDesc + '\'' +
                ", version='" + version + '\'' +
                ", chVersion='" + chVersion + '\'' +
                ", eTodayVersion='" + eTodayVersion + '\'' +
                ", cycle='" + cycle + '\'' +
                ", eVersion='" + eVersion + '\'' +
                '}';
    }
}
